package com.hl.shifangzhiyu.service.Impl;

import com.hl.shifangzhiyu.mapper.ConsultantsMapper;
import com.hl.shifangzhiyu.pojo.Consultants;
import com.hl.shifangzhiyu.service.ConsultantsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class ConsultantsServiceImpl implements ConsultantsService {

    @Autowired

    private ConsultantsMapper consultantsMapper;
    @Override
    public Consultants selectByPrimaryKey(Long id) {
        return consultantsMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Consultants> getConsultantsByFilters(List<String> tags, String level, String sex) {
        return consultantsMapper.findByFilters(tags, level, sex);
    }


}
